/*
 * Copyright (C) 2011 Macambira Team
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
package com.googlecode.entity;

import java.util.LinkedList;
import java.util.List;

/**
 * Classe responsavel por conter as informacoes de um professor
 *
 * @version 0.2 22 set 2011
 * @author Italo Cesar
 */
public class Professor {

    /**
     * @param args the command line arguments
     */
    private String id;
    private String nome;
    private String telefone;
    private String telefoneOpcional;
    private String email;
    private List<String> projetos;
    private List<Disciplina> disciplinasPreferenciais;

    public Professor() {
        this("@NOTSET", "@NOTSET", "@NOTSET", "@NOTSET", "@NOTSET");
    }

    public Professor(String id, String nome, String telefone, String telefoneOpcional, String email) {
        this.id = id;
        this.nome = nome;
        this.telefone = telefone;
        this.telefoneOpcional = telefoneOpcional;
        this.email = email;
        this.projetos = new LinkedList<String>();
        this.disciplinasPreferenciais = new LinkedList<Disciplina> ();
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return this.id;
    }

    public void setNome(String nome) {
        this.nome = nome;
    }

    public String getNome() {
        return this.nome;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getTelefone() {
        return telefone;
    }

    public void setTelefone(String telefone) {
        this.telefone = telefone;
    }

    public String getTelefoneOpcional() {
        return telefoneOpcional;
    }

    public void setTelefoneOpcional(String telefoneOpcional) {
        this.telefoneOpcional = telefoneOpcional;
    }
    
    public List<String> getListaProjetos() {
        return this.projetos;
    }
    
    public int getListProjetosSize() {
        return projetos.size();
    }
    
    public List<Disciplina> getListDisciplinasPreferenciais(){
        return this.disciplinasPreferenciais;
    }
    
    public int getListDisciplinasPreferenciaisSize(){
        return this.disciplinasPreferenciais.size();
    }

    @Override
    public String toString (){
        return this.getId() + "\n"+
               this.getNome() + "\n"+
               this.getEmail()+ "\n"+
               this.getTelefone() + "\n"+
               this.getTelefoneOpcional();
    }
}